import request from "@/utils/request";

// 区域完成情况
export function getRegionFinish(data) {
  return request({
    url: "/order/region/finish",
    method: "post",
    data: data,
  });
}

// 区域完成情况导出
export function ExcelRegionFinish(data) {
  return request({
    url: "/order/region/finish/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 业绩下滑门店
export function getRegionPoSub(data) {
  return request({
    url: "/order/region/poSub",
    method: "post",
    data: data,
  });
}

// 业绩下滑门店导出
export function ExcelRegionPoSub(data) {
  return request({
    url: "/order/region/poSub/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 区域门店完成情况
export function getFinishStore(data) {
  return request({
    url: "/order/region/finishStore",
    method: "post",
    data: data,
  });
}

// 区域门店完成情况导出
export function ExcelRegionFinishStore(data) {
  return request({
    url: "/order/region/finishStore/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 区域数据分析
export function getAnalysis(data) {
  return request({
    url: "/order/region/analysis",
    method: "post",
    data: data,
  });
}

// 区域数据分析导出
export function ExcelRegionAnalysis(data) {
  return request({
    url: "/order/region/analysis/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 区域数据排名
export function getRegionSort(data) {
  return request({
    url: "/order/region/sort",
    method: "post",
    data: data,
  });
}

// 区域数据排名导出
export function ExcelRegionSort(data) {
  return request({
    url: "/order/region/sort/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 区域数据对比
export function getRegioncontrast(data) {
  return request({
    url: "/order/region/contrast",
    method: "post",
    data: data,
  });
}

// 区域数据对比导出
export function ExcelRegionContrast(data) {
  return request({
    url: "/order/region/contrast/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 门店数据汇总
export function getRegionStore(data) {
  return request({
    url: "/order/region/store",
    method: "post",
    data: data,
  });
}

// 门店数据汇总导出
export function ExcelRegionStore(data) {
  return request({
    url: "/order/region/store/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 门店数据对比
export function getStoreContrast(data) {
  return request({
    url: "/order/region/store/contrast",
    method: "post",
    data: data,
  });
}

// 门店数据对比导出
export function ExcelRegionStoreContrast(data) {
  return request({
    url: "/order/region/store/contrast/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}
